home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / tkern10.zip / SRC\MAKEFILE < prev    next >
Text File  |  1994-07-09  |  2KB  |  99 lines

  1. #
  2. #  This file forms part of "TKERN" - "Troy's Kernel for Windows".
  3. #
  4. #  Copyright (C) 1994  Troy Rollo <troy@cbme.unsw.EDU.AU>
  5. #
  6. #  This library is free software; you can redistribute it and/or
  7. #  modify it under the terms of the GNU Library General Public
  8. #  License as published by the Free Software Foundation; either
  9. #  version 2 of the License, or (at your option) any later version.
  10. #
  11. #  This library is distributed in the hope that it will be useful,
  12. #  but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14. #  Library General Public License for more details.
  15. #
  16. #  You should have received a copy of the GNU Library General Public
  17. #  License along with this library; if not, write to the Free
  18. #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. #
  20.  
  21. .AUTODEPEND
  22.  
  23. CC = bcc
  24.  
  25. GENFLAGS = -DSTRICT -w! -ml -v -c -I..\INCLUDE
  26. CFLAGS = -W $(GENFLAGS)
  27. DLLFLAGS = -WD $(GENFLAGS)
  28.  
  29. CCMD = $(CC) $(CFLAGS)
  30. DLLCMD = $(CC) $(DLLFLAGS)
  31.  
  32. .c.obj:
  33.     $(DLLCMD) $*.c
  34.  
  35. default: tkern.lib tklib.lib tkfmangr.exe
  36.  
  37. install: default
  38.     copy tkern.dll c:\windows\system
  39.     copy tkfmangr.exe c:\windows\system
  40.  
  41.  
  42. # The stuff for the kernel dll first
  43.  
  44. tkern.lib: tkern.dll
  45.     implib tkern.lib tkern.dll
  46.     copy tkern.lib ..\lib
  47.  
  48. tkern.dll: tkern.obj formattr.obj misc.obj io.obj process.obj
  49.     tlink /v /s /c /C /Twd @&&!
  50. c0dl $**,tkern,tkern,cwl cl mathwl import,tkern
  51. !
  52.  
  53.  
  54.  
  55. # Then the stuff for tkfmangr
  56.  
  57. window.obj: window.c
  58.     $(CCMD) $*.c
  59.  
  60. tfile.obj: tfile.c
  61.     $(CCMD) $*.c
  62.  
  63. tpipe.obj: tpipe.c
  64.     $(CCMD) $*.c
  65.  
  66. tdevice.obj: tdevice.c
  67.     $(CCMD) $*.c
  68.  
  69. tkfmangr.obj : tkfmangr.c
  70.     $(CCMD) $*.c
  71.  
  72. tkfmangr.exe: tkfmangr.obj tdevice.obj window.obj tfile.obj tpipe.obj
  73.     tlink /v /c /C /s /n /Twe @&&!
  74. c0wl.obj $**,tkfmangr.exe,,tkern cwl import
  75. !
  76.  
  77.  
  78.  
  79.  
  80. # Then tklib.lib, the objs that need to be linked into the apps.
  81.  
  82. stdio.obj: stdio.c
  83.     $(CCMD) $*.c
  84.  
  85. links.obj: links.c
  86.     $(CCMD) $*.c
  87.  
  88. putenv.obj: putenv.c
  89.     $(CCMD) $*.c
  90.  
  91. setupio.obj: setupio.c
  92.     $(CCMD) -zACODE -zPCODE -zC_TEXT $*.c
  93.  
  94.  
  95. tklib.lib: links.obj putenv.obj stdio.obj setupio.obj
  96.     del tklib.lib
  97.     tlib tklib.lib /C /E +links.obj +putenv.obj +stdio.obj +setupio.obj
  98.     copy tklib.lib ..\lib
  99.